﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using TI;
using TiPort.TiEntityObjects;

namespace TiEntityObject.Notification
{
    public class NotificationOrder 
    {
        public Int64 ID { get; set; } 
        
        [XmlElement("initiator")]
        [LinkObjectAttribute(ChildFieldName = "RegNum",IsPartialObject =false, ParentFieldName = "InitiatorId")]
        public Initiator Initiator { get; set; }       
       
        [XmlElement("initiatorOrgRole")]
        public string initiatorOrgRole { get; set; }

        [XmlElement("placer")]
        [LinkObjectAttribute(ChildFieldName = "RegNum",IsPartialObject =false,  ParentFieldName = "PlacerID")]
        public Placer Placer { get; set; }

        [XmlElement("placerOrgType")]
        public string placerOrgType { get; set; }

        /// <summary>
        /// Информация о заказчике заполняется на уровне БД (mergeNotification)
        /// </summary>
        public DictionaryOrganization OrderOrganization { get; set; }
        
    }
}
